How to measure potential difference between two points